<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <title>提示信息测试页面</title>
    <script src="ZYAlert.js"></script>
    <script>
        window.onload = function () {
            ZYAlert("这是一个提示框，它将于3s后自动关闭！", true, true);
            let alert_open = document.getElementById("alert_open");
            let alert_close = document.getElementById("alert_close");
            alert_open.onclick = function () {
                ZYAlert("这是一个不会自动关闭的提示框！", false, true)
            }
            alert_close.onclick = function () {
                ZYAlert();
            }
        }
    </script>
</head>

<body>
    <button id="alert_open">打开提示框</button>
    <button id="alert_close">关闭提示框</button>
</body>

</html>